<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemFilesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('system_files', function (Blueprint $table) {
            $table->id()->comment('文件对比表');
            $table->string('content',32)->comment('文件内容');
            $table->string('filename',255)->comment('文件名称');
            $table->timestamp('visit_time')->comment('上次访问时间');
            $table->timestamp('modify_time')->comment('上次修改时间');
            $table->timestamp('change_time')->comment('上次改变时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('system_files');
    }
}
